Skip to content

Implement SigmaDelta based on ESP-IDF API #6053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 22, 2021
Merged

Implement SigmaDelta based on ESP-IDF API #6053

merged 2 commits into from
Dec 22, 2021

Conversation

P-R-O-C-H-Y
Copy link
Member

Summary

This PR is refactoring of SigmaDelta HAL in order to use IDF instead of current Register manipulation approach.

Impact

Change in API:

  • uint32_t sigmaDeltaSetup(uint8_t channel, uint32_t freq);
    changed to -->
    uint32_t sigmaDeltaSetup(uint8_t pin, uint8_t channel, uint32_t freq);

  • void sigmaDeltaAttachPin(uint8_t pin); removed, no longer needed. Pin is attached in sigmaDeltaSetup()

Related links

Complete refactoring + duty fix

removed ESP_ERROR_CHECK

include "esp_err.h" no more needed

sigmaDelta refactoring to ESP-IDF API
@P-R-O-C-H-Y P-R-O-C-H-Y self-assigned this Dec 22, 2021
@me-no-dev me-no-dev merged commit caef400 into espressif:master Dec 22, 2021
@VojtechBartoska VojtechBartoska linked an issue Dec 22, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change SigmaDelta to use ESP-IDF API (E)
2 participants